package priv.project.pojo;/**
 * @author： li
 * @date： 2023-02-14 16:09
 * @version 1.0
 */

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.annotation.Resource;
import java.util.Date;

/**
 * @author： ljm
 * @date： 2023-02-14 16:09
 * @version 1.0
 */
@TableName("t_strategy")
public class Strategy {
    private int id;
    private String title;
    private String indexImg;
    private String content;
    private Date createDate;
    private int userId;
    private String userType;
    private String keyWord;


    public Strategy() {
    }

    public Strategy(int id, String title, String indexImg, String content, Date createDate, int userId, String userType) {
        this.id = id;
        this.title = title;
        this.indexImg = indexImg;
        this.content = content;
        this.createDate = createDate;
        this.userId = userId;
        this.userType = userType;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIndexImg() {
        return indexImg;
    }

    public void setIndexImg(String indexImg) {
        this.indexImg = indexImg;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    @TableField(exist = false)
    User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Strategy{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", indexImg='" + indexImg + '\'' +
                ", content='" + content + '\'' +
                ", createDate='" + createDate + '\'' +
                ", userId=" + userId +
                ", userType='" + userType + '\'' +
                ", KeyWord='" + keyWord + '\'' +
                '}';
    }


}
